package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

/**
 * @Author FengHuan Wang
 * @Date 2024/12/29 16:31
 * @Version 1.0
 */
public interface DishService {

    void save(DishDTO dishDTO);

    PageResult pageQuery(DishPageQueryDTO dishPageQueryDTO);

    void deleteById(List<Long> ids);

    DishVO getById(Long dishId);

    void updateDishById(DishVO dishVO);

    List<Dish> getByCategoryId(Long categoryId);
    /**
     * 条件查询菜品和口味
     * @param dish
     * @return
     */
    List<DishVO> listWithFlavor(Dish dish);

    void stopAndStop(Integer status, Long id);
}
